package com.cxl.demo.mapper;

import com.cxl.demo.vo.RecordGrade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface RecordGradeMapper {
    @Select("select * from recordgrade")
    List<RecordGrade> getGradeList();
    @Select("select * from recordgrade where recordGradeId=#{recordGradeId}")
    RecordGrade getGradeById(Integer recordGradeId);
    @Update("update recordgrade set recordGradeDivide=#{recordGradeDivide} where recordGradeId=#{recordGradeId}")
    Integer UpGrade(RecordGrade recordGrade);



}
